package com.github.easyms.server.config.shiro;

import org.apache.shiro.authc.AuthenticationToken;

/**
 * JWT
 *
 * @author Leo.Liao
 * @date 2020-04-10 00:13:49
 */
public class JwtToken implements AuthenticationToken {

    /**
     * Token
     */
    private String token;

    public JwtToken(String token) {
        this.token = token;
    }

    @Override
    public Object getPrincipal() {
        return token;
    }

    @Override
    public Object getCredentials() {
        return token;
    }

}
